import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import common from '@/libs/common'
import config from '@/config'
import iView from 'view-design'
import 'view-design/dist/styles/iview.css'
import iViewThemes from 'iview-layout-themes'
import 'iview-layout-themes/lib/iview-layout-themes.css'
import Print from 'vue-print-nb'

if (process.env.NODE_ENV !== 'production') require('@/mock')
Vue.use(iView)
Vue.use(iViewThemes)
Vue.use(Print)

Vue.config.productionTip = false
Vue.prototype.$common = common
Vue.prototype.$config = config

window.app = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
